package com.zhijian.medical.service;

import com.zhijian.medical.dao.local.RoutinePatientDiagnoseCollectMapper;
import com.zhijian.medical.entity.po.RoutinePatientDiagnoseCollect;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * 收藏报告
 */
@Service
public class RoutinePatientDiagnoseCollectService {

    @Autowired
    RoutinePatientDiagnoseCollectMapper routinePatientDiagnoseCollectMapper;

    public RoutinePatientDiagnoseCollect addCollect(RoutinePatientDiagnoseCollect routinePatientDiagnoseCollect){
        Date now = new Date();
        routinePatientDiagnoseCollect.setCreateTime(now);
        routinePatientDiagnoseCollect.setUpdateTime(now);
        routinePatientDiagnoseCollectMapper.insert(routinePatientDiagnoseCollect);
        return routinePatientDiagnoseCollect;
    }
}
